<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use Illuminate\Routing\Router;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::post('auth/login', 'App\Http\Controllers\Api\AuthController@login');
Route::post('auth/user_phone', 'App\Http\Controllers\Api\AuthController@userPhone');
Route::middleware('authToken')->post('upload/create', 'App\Http\Controllers\Api\UploadController@create');
Route::post('upload/id_card', 'App\Http\Controllers\Api\UploadController@idCard');
Route::middleware('authToken')->post('apply/create', 'App\Http\Controllers\Api\ApplyController@create');
Route::middleware('authToken')->post('apply/list', 'App\Http\Controllers\Api\ApplyController@list');
Route::middleware('authToken')->post('apply/detail', 'App\Http\Controllers\Api\ApplyController@detail');
Route::middleware('authToken')->post('apply/draft/create', 'App\Http\Controllers\Api\ApplyDraftController@create');
Route::middleware('authToken')->post('apply/draft/list', 'App\Http\Controllers\Api\ApplyDraftController@list');
Route::middleware('authToken')->post('apply/draft/detail', 'App\Http\Controllers\Api\ApplyDraftController@detail');
Route::any('config/lists', 'App\Http\Controllers\Api\ConfigController@lists');
